<?php
/**
 * Created by PhpStorm.
 * User: yuguozhen
 * Date: 16/7/19
 * Time: 下午7:51
 */
namespace library;
include_once('../vendor/autoload.php');
use Illuminate\Database\Eloquent\Model  as Eloquent;
class DataLayer extends Eloquent{
    protected $message = '';
    protected $error = '';
    protected $time;

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->time = time();
    }

    public function getMessage(){
        return $this->message;
    }

    public function getErrorCode(){
        return $this->error;
    }

}
